package t1;

import org.junit.Test;
import utils.Sleeper;

import java.text.DecimalFormat;
import java.util.Random;

/**
 * @author fu
 * @date 2022-01-07 21:36
 * 概要：
 * XXXXX
 */
public class T2_reentrantlock可打断被动_any_test {

    Random random = new Random();
    @Test
    public void test1() {


        while(true){
            Sleeper.sleep(0.5);
            int v = random.nextInt(5);
            System.out.println(v);

        }

//        System.out.println("v=====" + v);
//        System.out.println(String.format("%.1f", v));
//        System.out.println(new DecimalFormat("#0.0").format(v));
    }
}
